package com.mini.repository;

import com.mini.model.BusinessCity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xyf
 * @title: BusinessCityRepository
 * @description: TODO
 * @date 2020-09-12
 */
@Repository
public interface BusinessCityRepository extends JpaRepository<BusinessCity, Long>, JpaSpecificationExecutor<BusinessCity> {

        List<BusinessCity> findByLevel(Integer level);
        List<BusinessCity> findByPcode(String pcode);
        BusinessCity findByCode(String code);
}
